package net.ericaro.neojavagen.classes ;
import net.ericaro.neojavagen.classes.Dims;
import net.ericaro.neojavagen.types.Type;
import net.ericaro.neojavagen.classes.MethodDeclarator;
import net.ericaro.neojavagen.classes.TypedMethodDeclarator ;

/**
* *<pre> ReturnMethodDeclarator :
    Type MethodDeclarator Dims?
</pre>
*/
public class ReturnMethodDeclarator  implements TypedMethodDeclarator {

Type type;
MethodDeclarator methoddeclarator;
Dims dims ;

public ReturnMethodDeclarator( Type type, MethodDeclarator methoddeclarator, Dims dims ){
	this.type = type; this.methoddeclarator = methoddeclarator; this.dims = dims ;
	}public ReturnMethodDeclarator( Type type, MethodDeclarator methoddeclarator ){
this.type = type; this.methoddeclarator = methoddeclarator ;
}


public String toString(){
	StringBuilder stringbuilder = new StringBuilder();
	stringbuilder.append( this.type ).append(" ");
stringbuilder.append( this.methoddeclarator ).append(" ");
if (this.dims !=null ) stringbuilder.append( this.dims ).append(" ") ;
	return stringbuilder.toString();
}

}
